const server = require('../../utils/server');
Page({
  data: {
    detailData:{}
  },
  onLoad: function (options) {
    console.log(options)
    this.loadData(options);
  },
  tapLockImg: function(e){
    wx.previewImage({
      current: e.target.dataset.src,
      urls: this.data.detailData.imgs,
    })
  },
  loadData: function(data){
    var that = this;
    server.postJSON('getDetail', data, function (res) {
      that.setData({
        detailData: res.data.data[0]
      })
    });
  },
  onShow: function () {

  },
  onShareAppMessage: function () {

  }
})